<form id="frmModal" name="frmModal" action="<?php echo site_url(array('psdm','karyawan','ajax','save')) ?>" method="post">
<h3 class="dialog_title"><span>Add Karyawan</span></h3>

<div id="ginfo">
<div class="dialog_content" style="width: 600px;">
<div style="border-bottom: 1px solid #CCC; padding: 10px 0;">
<table width="100%" border="0" cellpadding="5">
	<tr>
		<td colspan="2">
		<h3 style="padding: 0; margin: 0">General Information</h3>
		</td>
	</tr>
	<tr>
		<td align="right">Kode karyawan:</td>
		<td><input type="text" name="inp[0]" class="validate['required','%checkID']" maxlength="20"></td>
	</tr>
	<tr>
		<td align="right">Nama:</td>
		<td><input type="text" name="inp[1]" class="validate['required']" maxlength="20"></td>
	</tr>
	<tr>
		<td align="right">Tempat lahir:</td>
		<td>
			<select name="inp[2]">
			<option>--- pilih ---</option>
			<?php if ($kota_data->num_rows() > 0):?>
			<?php foreach($kota_data->result_array() as $row):?>
			<option value="<?php echo $row['kota_id']?>"><?php echo $row['kota_nama']?></option>
			<?php endforeach?>
			<?php endif?>
			</select>
		</td>
	</tr>
	<tr>
		<td align="right">Tanggal lahir:</td>
		<td><input type="text" name="inp[3]" class="datepicker validate['required']"></td>
	</tr>
	<tr>
		<td align="right">Jenis kelamin:</td>
		<td><label> <input type="radio" name="inp[4]" value="L" class="validate['group[3]']"> Laki-laki</label> 
			<label style="margin-left: 10px"> <input type="radio" name="inp[4]" value="P" class="validate['group[3]']"> Perempuan</label>
		</td>
	</tr>
	<tr>
		<td align="right">Golongan darah:</td>
		<td><label> <input type="radio" name="inp[5]" value="A" class="validate['group[1]']"> A</label> 
			<label style="margin-left: 10px"> <input type="radio" name="inp[5]" value="B" class="validate['group[1]']"> B</label> <label
			style="margin-left: 10px"> <input type="radio" name="inp[5]" value="AB" class="validate['group[1]']"> AB</label> 
			<label style="margin-left: 10px"> <input type="radio" name="inp[5]" value="O" class="validate['group[1]']"> O</label></td>
	</tr>
	<tr>
		<td align="right">Marital:</td>
		<td><label> <input type="radio" name="inp[6]" value="BL" class="validate['group[2]']"> Belum Menikah</label> 
			<label style="margin-left: 10px"> <input type="radio" name="inp[6]" value="M" class="validate['group[2]']"> Menikah</label> 
			<label style="margin-left: 10px"> <input type="radio" name="inp[6]" value="DJ" class="validate['group[2]']"> Duda / Janda</label></td>
	</tr>
	<tr>
		<td align="right">Jumlah Tanggungan</td>
		<td><input type="text" name="inp[15]" value="" style="width: 40px; text-align: right;" maxlength="2" /></td>
	</tr>
	<tr>
		<td align="right">Agama:</td>
		<td><select name="inp[7]" >
			<option>--- pilih ---</option>
			<?php foreach($agama_options as $key=>$val):?>
				<option value="<?php echo $key?>"><?php echo $val?></option>
			<?php endforeach?>
		</select></td>
	</tr>
	<tr>
		<td align="right">Email:</td>
		<td><input type="text" name="inp[8]" class="validate['required','email']"></td>
	</tr>
	<tr>
		<td align="right">Tanggal masuk</td>
		<td><input type="text" name="inp[9]" class="datepicker validate['required']"></td>
	</tr>
	<tr>
		<td align="right">Status kerja</td>
		<td><select name="inp[10]">
		<?php if ($sts_data->num_rows() > 0):?>
		<?php foreach($sts_data->result_array() as $row):?>
			<option value="<?php echo $row['kary_sts_id']?>"><?php echo $row['kary_sts_nama']?></option>
		<?php endforeach?>
		<?php endif?>
		</select></td>
	</tr>
</table>
</div>
<div class="dialog_buttons" style="padding: 12px 10px">
	<input class="button" type="submit" value="Next" /> 
	<input class="button" type="button" value="Cancel" onclick="FBModal_hide()" />
</div>
</div>
</div>


<div id="cinfo" style="width: 600px; display: none;">
<div class="dialog_content">
<div style="border-bottom: 1px solid #CCC; padding: 10px 0;">
<table width="100%" border="0" cellpadding="5">
	<tr>
		<td colspan="2">
		<h3 style="padding: 0; margin: 0">Contact Information</h3>
		</td>
	</tr>
	<tr>
		<td>Alamat</td>
		<td>Kota</td>
	</tr>
	<tbody id="cinfo_alamat"></tbody>
	<tr>
		<td colspan="2" align="right"><a onclick="_addRowAlamat($(cinfo_alamat))" class="fakeLink">Tambah</a></td>
	</tr>
</table>
<table cellpadding="5">
	<tr>
		<td colspan="6">Telepon</td>
	</tr>
	<tbody id="cinfo_tlp"></tbody>
	<tr>
		<td colspan="3" align="right"><a onclick="_addRowTlp($(cinfo_tlp))" class="fakeLink">Tambah</a></td>
		<td></td>
	</tr>
</table>
</div>
<div class="dialog_buttons" style="padding: 12px 10px">
	<input class="button" type="submit" value="Save" /> 
	<input class="button" type="button" value="Cancel" onclick="FBModal_hide()" />
</div>
</div>
</div>

</form>
